
//--------------------------------------------------------------------//
//     此代码由T4模板自动生成										  //
//	   生成时间 2020-03-25 14:16:27 	                              //
//	   描述：Base_AnnexesFile
//--------------------------------------------------------------------//

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using RayD.Core;

namespace RayD.Repository.Entites.SystemModule
{	
    [Table("BASE_ANNEXESFILE")]
	public class AnnexesFileEntity
	{
		#region 实体成员
		/// <summary>
		/// 文件主键
		/// </summary>
		/// <returns></returns>
		[Key]
		[Column("B_ID")]
		public string B_Id { get; set; }
		/// <summary>
		/// 附件夹主键
		/// </summary>
		/// <returns></returns>
		[Column("B_FOLDERID")]
		public string B_FolderId { get; set; }
		/// <summary>
		/// 文件名称
		/// </summary>
		/// <returns></returns>
		[Column("B_FILENAME")]
		public string B_FileName { get; set; }
		/// <summary>
		/// 文件路径
		/// </summary>
		/// <returns></returns>
		[Column("B_FILEPATH")]
		public string B_FilePath { get; set; }
		/// <summary>
		/// 文件大小
		/// </summary>
		/// <returns></returns>
		[Column("B_FILESIZE")]
		public string B_FileSize { get; set; }
		/// <summary>
		/// 文件后缀
		/// </summary>
		/// <returns></returns>
		[Column("B_FILEEXTENSIONS")]
		public string B_FileExtensions { get; set; }
		/// <summary>
		/// 文件类型
		/// </summary>
		/// <returns></returns>
		[Column("B_FILETYPE")]
		public string B_FileType { get; set; }
		/// <summary>
		/// 下载次数
		/// </summary>
		/// <returns></returns>
		[Column("B_DOWNLOADCOUNT")]
		public int? B_DownloadCount { get; set; }
		/// <summary>
		/// 创建日期
		/// </summary>
		/// <returns></returns>
		[Column("B_CREATEDATE")]
		public DateTime? B_CreateDate { get; set; }
		/// <summary>
		/// 创建用户主键
		/// </summary>
		/// <returns></returns>
		[Column("B_CREATEUSERID")]
		public string B_CreateUserId { get; set; }
		/// <summary>
		/// 创建用户
		/// </summary>
		/// <returns></returns>
		[Column("B_CREATEUSERNAME")]
		public string B_CreateUserName { get; set; }
 
        #endregion
		
        #region 扩展操作
		/// <summary>
        /// 新增调用
        /// </summary>
        public void Create()
        {
			UserInfo userInfo = AuthenticationHelper.LoginUserInfo;
			this.B_CreateDate = DateTime.Now.ToCstTime();
			this.B_CreateUserId = userInfo.userId;
			this.B_CreateUserName = userInfo.realName;
		}
        /// <summary>
        /// 编辑调用
        /// </summary>
        public void Modify()
        {
			UserInfo userInfo = AuthenticationHelper.LoginUserInfo;
        }
        #endregion
    }
}

